<h2><?php print $header?></h2>
<p><?php print $this->lang->line( 'event_info' )?></p>

<?php print form_open( 'events/user/events/form/'.$this->validation->id, array( 'class' => 'horizontal' ) )?>
    <fieldset>
        <ol>
			<li>
                <?php print form_label( $this->lang->line( 'event_title' ), 'title' )?>
                <?php print form_input( 'title', $this->validation->title, 'id="title" class="text"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_short_description' ), 'short_description' )?>
                <?php print form_textarea( 'short_description', $this->validation->short_description, 'id="short_description" class="text"' )?>
            </li> 
            <li>
                <?php print form_label( $this->lang->line( 'event_description' ), 'description' )?>
                <?php print form_fckeditor( $fckeditor, $this->validation->description )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_weekday' ), 'weekday' )?>
                <?php print form_input( 'weekday', $this->validation->weekday, 'id="weekday" class="text"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_start_date' ), 'start_date' )?>
                <?php print form_input( 'start_date', $this->validation->start_date, 'id="start_date" class="date-pick dp-applied"' )?>
                <a href="#" class="dp-choose-date" title="Choose date">Choose date</a>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_start_time' ), 'start_time' )?>
                <?php print form_input( 'start_time', $this->validation->start_time, 'id="start_time" class="text"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_end_date' ), 'end_date' )?>
                <?php print form_input( 'end_date', $this->validation->end_date, 'id="end_date" class="date-pick dp-applied"' )?>
                <a href="#" class="dp-choose-date" title="Choose date">Choose date</a>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_end_time' ), 'end_time' )?>
                <?php print form_input( 'end_time', $this->validation->end_time, 'id="end_time" class="text"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_type' ), 'type' )?>
                <?php print form_dropdown( 'type', $type, $this->validation->type, 'id="type" size="10" style="width:20.3em;"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('event_location'), 'location' )?>
                <?php print form_dropdown( 'location', $location, $this->validation->location, 'id="event_location" size="10" style="width:20.3em;"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_highlight' ), 'highlight' )?>
                <?php print $this->lang->line( 'general_yes' ) ?> <?php print form_radio( 'highlight', '1', $this->validation->set_radio( 'highlight', '1' ), 'id="highlight"' )?>
                <?php print $this->lang->line( 'general_no' ) ?> <?php print form_radio( 'highlight', '0', $this->validation->set_radio( 'highlight', '0' ) )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'event_active' ), 'active' )?>
                <?php print $this->lang->line( 'general_yes' ) ?> <?php print form_radio( 'active', '1', $this->validation->set_radio( 'active', '1' ), 'id="active"' )?>
                <?php print $this->lang->line( 'general_no' ) ?> <?php print form_radio( 'active', '0', $this->validation->set_radio( 'active', '0' ) )?>
            </li>
            <li class="submit">
                <?php print form_hidden( 'id', $this->validation->id )?>
                <div class="buttons">
	                <button type="submit" class="positive" name="submit" value="submit">
	                	<?php print $this->bep_assets->icon( 'disk' );?>
	                	<?php print $this->lang->line( 'general_save' )?>
	                </button>
	                <a href="<?php print site_url( 'events/user/events' )?>" class="negative">
	                	<?php print $this->bep_assets->icon( 'cross' );?>
	                	<?php print $this->lang->line( 'general_cancel' )?>
	                </a>
	            </div>
            </li>
        </ol>
    </fieldset>
<?php print form_close( )?>